import React, { Component } from 'react';
/* 
    1.父传子
    通过属性
*/
class Tesingchild extends Component{
    render(){
        return <h1>{this.props.msg}</h1>
    }
}
class Tesing extends Component {
    render() {
        return (
            <div>
                <Tesingchild msg="🐂"></Tesingchild>
            </div>
        );
    }
}

export default Tesing;